<?php
/**
 *@author Connor <caokang@foxmail.com>
 *@todo
 *@link www.zeevin.com
 */
?>
<div class="title">
	<h3>个人介绍</h3>
	<ul>
		<li class="current"><a href="?r=home/profile" title="个人介绍">个人介绍</a></li>
		<li><a href="?r=home/intro" title="定义资料">定义资料</a></li>
	</ul>
</div>
<div class="main_content">
<?php $form=$this->beginWidget('CActiveForm');?>
	<div class="definition">
    <style type="text/css">
	.errorMessage{ padding-left:60px; color:#f00}
	</style>
			<div class="definition_title">
				<?php echo $form->label($model,'subject');?>
				<?php echo $form->textField($model,'subject',array('size'=>80,'maxlength'=>255,'value'=>($model->isNewRecord?'我是低调的╳╳╳':$model->subject))); ?>
				<?php echo $form->error($model,'subject');?>
			</div>
			<div class="definition_title">
				<?php echo $form->label($model,'title');?>
				<?php echo $form->textField($model,'title',array('size'=>80,'maxlength'=>255,'value'=>($model->isNewRecord?'我在寻找╳╳╳╳的你':$model->title))); ?>
				<?php echo $form->error($model,'title');?>
			</div>
			<div class="definition_con">
				<?php echo $form->label($model,'content');?>
				<?php echo CHtml::activeTextArea($model,'content',array('rows'=>10, 'cols'=>70)); ?>
				<?php echo $form->error($model,'content');?>
			</div>
			<div class="definition_sub">
				<?php echo CHtml::submitButton($model->isNewRecord ? '保存' : '修改'); ?>
			</div>
	</div>
<?php $this->endWidget(); ?>
</div>
<script type="text/javascript">
var msg = "<?php echo $msg['status'];?>";
if(msg=='0'){
	$('#topmsg').html("<?php echo $msg['desc']; ?>");
    $('#showmsg').show();
    showDialog();
    setTimeout(function(){location.reload();},400);

}
<?php if($model->isNewRecord):?>
var con = "       一个人走得久了，会累，有个人，陪你在冬日的午后晒太阳，为你递上一杯热气腾腾的绿茶，和心爱的人慢慢变老，还有什么比这更幸福呢？\r\n      也许我很平凡，但是我绝不缺乏生活的热情和生命的梦想，也许我会孤单，但是我会一路找寻你的踪迹。遇见你，将是我生命中最绚烂的时刻。\r\n";
$('#UserIntro_content').val(con);
<?php endif;?>
</script>